package com.bitmm.itsalon.spring.xml.web.controller;

import com.bitmm.itsalon.spring.xml.web.vo.TestVO1;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping(value = "/test_1/{pathParam}", produces = "application/json; charset=utf-8")
    public TestVO1 getVO(@PathVariable("pathParam") String pathParam) {
        return TestVO1.builder()
                .age(18)
                .name("Alice")
                .hello("hello:" + pathParam)
                .note("中文")
                .build();
    }

}
